<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>钩子方法</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="add">
        
    </div>
</body>
<script>
    new Vue({
        el:"app",
        methods: {
            
        },
        //钩子方法 ---- 挂载完成后
        mounted () {
            alert("我要发送请求到后端了")
        }
    })
</script>
</html>